package com.wx.fresh.business.controller;


import com.wx.fresh.business.vo.orderVo.*;
import com.wx.fresh.common.util.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "订单")
@RestController
@RequestMapping("/business/order")
public class OrderController {
    @ApiOperation(value = "查询所有订单", response = bOrderVO.class)
    @GetMapping("findAll")
    public CommonResult findAll(bOrderVO bOrderVO) {
        return null;
    }


    @ApiOperation(value = "删除订单", response = bOrderDeleteVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "订单id", required = true, paramType = "form"),
    })
    @PostMapping("/delete")
    public CommonResult delete(bOrderDeleteVO borderVO) {
        return null;
    }


    @ApiOperation(value = "查询订单id", response = bOrderDeleteVO.class)
    @GetMapping("/findById")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "订单id", required = true, paramType = "form"),
    })
    public CommonResult findById(bOrderDeleteVO borderVO) {
        return null;
    }


    @ApiOperation(value = "查询某门店所有订单", response = bOrderVO.class)
    @GetMapping("findStoreOrder")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "store_id", value = "门店id", required = true, paramType = "form")
    })
    public CommonResult findStoreOrder(bStoreOrderVO bOrderVO) {
        return null;
    }


    @GetMapping("findOrderDetail")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "order_details_id", value = "订单详情id", required = true, paramType = "form")
    })
    public CommonResult findStoreOrder(bOrderDetail bOrderVO) {
        return null;
    }


    @ApiOperation(value = "根据状态查订单", response = bOrderVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "state", value = "状态", required = true, paramType = "form"),
            @ApiImplicitParam(name = "user_id", value = "用户id", required = true, paramType = "form")
    })
    @GetMapping("findOrderState")
    public CommonResult<List<bOrderVO>> findOrderState(bOrderVO bOrderVO) {
        return null;
    }


    @ApiOperation(value = "确认订单", response = bOrderConfirm.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "state", value = "状态", required = true, paramType = "form"),
            @ApiImplicitParam(name = "order_id", value = "订单编号", required = true, paramType = "form"),
            @ApiImplicitParam(name = "store_id", value = "门店编号", required = true, paramType = "form")
    })
    @GetMapping("findOrderConfirm")
    public CommonResult findOrderConfirm(bOrderConfirm bOrderConfirm) {
        return null;
    }

    @ApiOperation(value = "修改订单状态", response = bOrderDeleteVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "state", value = "状态", required = true, paramType = "form"),
            @ApiImplicitParam(name = "order_id", value = "订单id", required = true, paramType = "form"),

    })
    @GetMapping("updateOrderState")
    public CommonResult updateOrderState(bOrderDeleteVO bOrderConfirm) {
        return null;
    }
}
